package com.tanhua.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

public class UserInfo extends BasePojo {

    /**
     * 由于userinfo表和user表之间是一对一关系
     * userInfo的id来源于user表的id
     */
    @TableId(type = IdType.INPUT)
    private Long id; //用户id
    private String nickname; //昵称
    private String avatar; //用户头像
    private String birthday; //生日
    private String gender; //性别
    private Integer age; //年龄
    private String city; //城市
    private String income; //收入
    private String education; //学历
    private String profession; //行业
    private Integer marriage; //婚姻状态
    private String tags; //用户标签：多个用逗号分隔
    private String coverPic; // 封面图片

    //用户状态,1为正常，2为冻结
    @TableField(exist = false)
    private String userStatus = "1";


    public UserInfo() {
    }

    public UserInfo(Long id, String nickname, String avatar, String birthday, String gender, Integer age, String city, String income, String education, String profession, Integer marriage, String tags, String coverPic, String userStatus) {
        this.id = id;
        this.nickname = nickname;
        this.avatar = avatar;
        this.birthday = birthday;
        this.gender = gender;
        this.age = age;
        this.city = city;
        this.income = income;
        this.education = education;
        this.profession = profession;
        this.marriage = marriage;
        this.tags = tags;
        this.coverPic = coverPic;
        this.userStatus = userStatus;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return nickname
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * 设置
     * @param nickname
     */
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /**
     * 获取
     * @return avatar
     */
    public String getAvatar() {
        return avatar;
    }

    /**
     * 设置
     * @param avatar
     */
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    /**
     * 获取
     * @return birthday
     */
    public String getBirthday() {
        return birthday;
    }

    /**
     * 设置
     * @param birthday
     */
    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    /**
     * 获取
     * @return gender
     */
    public String getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(String gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * 获取
     * @return city
     */
    public String getCity() {
        return city;
    }

    /**
     * 设置
     * @param city
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * 获取
     * @return income
     */
    public String getIncome() {
        return income;
    }

    /**
     * 设置
     * @param income
     */
    public void setIncome(String income) {
        this.income = income;
    }

    /**
     * 获取
     * @return education
     */
    public String getEducation() {
        return education;
    }

    /**
     * 设置
     * @param education
     */
    public void setEducation(String education) {
        this.education = education;
    }

    /**
     * 获取
     * @return profession
     */
    public String getProfession() {
        return profession;
    }

    /**
     * 设置
     * @param profession
     */
    public void setProfession(String profession) {
        this.profession = profession;
    }

    /**
     * 获取
     * @return marriage
     */
    public Integer getMarriage() {
        return marriage;
    }

    /**
     * 设置
     * @param marriage
     */
    public void setMarriage(Integer marriage) {
        this.marriage = marriage;
    }

    /**
     * 获取
     * @return tags
     */
    public String getTags() {
        return tags;
    }

    /**
     * 设置
     * @param tags
     */
    public void setTags(String tags) {
        this.tags = tags;
    }

    /**
     * 获取
     * @return coverPic
     */
    public String getCoverPic() {
        return coverPic;
    }

    /**
     * 设置
     * @param coverPic
     */
    public void setCoverPic(String coverPic) {
        this.coverPic = coverPic;
    }

    /**
     * 获取
     * @return userStatus
     */
    public String getUserStatus() {
        return userStatus;
    }

    /**
     * 设置
     * @param userStatus
     */
    public void setUserStatus(String userStatus) {
        this.userStatus = userStatus;
    }

    public String toString() {
        return "UserInfo{id = " + id + ", nickname = " + nickname + ", avatar = " + avatar + ", birthday = " + birthday + ", gender = " + gender + ", age = " + age + ", city = " + city + ", income = " + income + ", education = " + education + ", profession = " + profession + ", marriage = " + marriage + ", tags = " + tags + ", coverPic = " + coverPic + ", userStatus = " + userStatus + "}";
    }
}